package program.conditions;

import item.*;

/**
 * A class concerning true-conditions: (true).  
 * 
 */
public class True extends Conditions {

        /**
         * Initialise this new true-condition with a line-number.
         * 
         */
        public True(int lineNb) {
                super(lineNb);
        }

        /**
         * Evaluates this condition for a given robot.
         * 
         * @return      The result is always true.
         *                      | result == super.evaluate(robot)
         */
        @Override
        public boolean evaluate(Robot robot) {
                return super.evaluate(robot);
        }
        
        /**
         * Returns a textual representation of this true-condition, formatted in accordance with its position in the program.
         * 
         * @return      
         * 			| result == getIndentation(indentationLevel) + "(true)"
         */
        @Override
        public String prettyFormat(int indentationLevel) {
                return getIndentation(indentationLevel) + "(true)";
        }
}